<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
  <head><title>HR System :: all persons</title></head>
  <body>
  <table border="1">
          <tr>
            <td>First Name</td>
            <td>Last Name</td>
            <td>Middle Name</td>
            <td>Job Title</td>
          </tr>
    <c:forEach items="${personList}" var="person" varStatus="status">
      <tr>
        <td id="fn_<c:out value="${status.count}"/>"><c:out value="${person.firstName}"/></td>
        <td id="ln_<c:out value="${status.count}"/>"><c:out value="${person.lastName}"/></td>
        <td id="mn_<c:out value="${status.count}"/>"><c:out value="${person.middleName}"/></td>
        <td id="jt_<c:out value="${status.count}"/>"><c:out value="${person.jobTitle}"/></td>
      </tr>
    </c:forEach>
  </table>
  <a href="create" id="newPerson">Create New Person</a>
  </body>
</html>